#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2017/12/27 14:41
# @Author  : Beam
# @Site    : 
# @File    : publish_funcs.py
# @Software: PyCharm


from django import template
register = template.Library()

@register.simple_tag
def dblists(dbcount):
	li = []
	for i in range(0,dbcount):
		li.append(i)

	'''
	<select name='dbname'>
		for i in li:
			<option value=i>i</option>
	</select>
	'''
	return li